﻿/******************************************************************************
 * Name         : LoginPlayer.hpp
 * Author       : 671643387
 * Date         : 2015年9月14日
 * Description  :
 *****************************************************************************/

#ifndef LOGIN_SERVER_PLAYER_LOGINPLAYER_HPP_
#define LOGIN_SERVER_PLAYER_LOGINPLAYER_HPP_

#include <boost/shared_ptr.hpp>
#include <common/player/Player.hpp>

namespace sxr
{
    namespace login_server
    {
        class LoginPlayer;
        typedef boost::shared_ptr<LoginPlayer> LoginPlayerPtr;

        class LoginPlayer : public common::Player
        {
        public:
            LoginPlayer(int id, dev::net::TcpConnectionPtr& conn);
            virtual ~LoginPlayer(void);

        public:
            virtual bool executePacket(common::PacketPtr packet);
            virtual void onRemovePlayer(void);
        };
    }
}

#endif /* LOGIN_SERVER_PLAYER_LOGINPLAYER_HPP_ */
